#ifndef SETFORMATDLG_H
#define SETFORMATDLG_H
#include <QDialog>

enum Model
{
    Resource = 0,
    Style,
    TimeFormat,
    Text,
};

class QToolButton;
class QPushButton;
class QPlainTextEdit;
class QButtonGroup;
class QSpacerItem;
class QComboBox;

class SetFormatDlg : public QDialog
{
    Q_OBJECT
public:
    explicit SetFormatDlg(Model model, QDialog *parent = nullptr);
    QPushButton *btn_add_resource;
    QToolButton *tool_btn_color;
    QPushButton *btn_cancel;
    QPushButton *btn_ok;
    QPushButton *btn_add_font;
    QPlainTextEdit *text_edit;
    QButtonGroup *btn_group;
    QSpacerItem *space;
    QComboBox *box_timeformat;
private:
    Model m_model;

    void set_format(const QString &);
private slots:
    void set_color(QAction *);
    void set_font();
//    void set_cancel();
//    void set_ok();
};

#endif // SETFORMATDLG_H
